<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>进度条5</title>
<style>
*{
	padding:0;margin:0;
	}
.loading{
	width:100%;
	height:100%;
	position:fixed;
	top:0;left:0;
	z-index:100;
	background:#FFF;
	}
.loading .pic{
	width:100px;
	height:100px;
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	margin:auto;
	font-size:30px;
	text-align:center;
	line-height:100px;
	
	}
.loading .pic span{
	display:block;
	width:80px;
	height:80px;
	position:absolute;
	top:10px;
	left:10px;
	border-radius:50%;
	box-shadow:0 3px 0 #666;
	-webkit-animation:rotate 1s infinite linear;
	animation:rotate 1s infinite linear;
	}
@-webkit-keyframes rotate{
	0%{ -webkit-transform：rotate(0deg);}
	100%{ -webkit-transform:rotate(360deg);}
	
	}
@keyframes rotate{
	0%{transform：rotate(0deg);}
	100%{transform:rotate(360deg);}
	
	}

</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script>

$(function(){
		var img=$("img");
		var num=0;
		img.each(function(i) {
			var oImg=new Image();
			oImg.onload=function(){
				num++;
				$(".loading b").html(parseInt(num/$("img").size()*100)+"%");
				if(num>=i){
					$(".loading").fadeOut();
				}
			}
			oImg.src=img[i].src;
            
        });
	})

</script>
</head>

<body>


<div class="loading">
	<div class="pic">
		<span></span>
        <b>0%</b>
	</div>
</div>
   



<img src="http://b.zol-img.com.cn/desk/bizhi/image/4/960x600/1383276490582.jpg" alt=""  />
<img src="http://img3.91.com/uploads/imagef1/allimg/121026/23-121026161101-50.jpg" alt=""  />
<img src="http://t1.niutuku.com/960/56/56-441683.jpg" alt=""  />
<img src="http://img5.duitang.com/uploads/item/201408/16/20140816124946_8JHXF.jpeg" alt=""  />
<img src="http://img4.duitang.com/uploads/item/201407/18/20140718230003_ZFX2f.jpeg" alt=""  />
<img src="http://b.zol-img.com.cn/desk/bizhi/image/4/960x600/1383276490582.jpg" alt=""  />

<img src="http://img5.duitang.com/uploads/item/201406/28/20140628084407_WkunE.jpeg"  />
<img src="http://img5.duitang.com/uploads/item/201407/15/20140715120657_n4dmF.jpeg" alt=""  />
<img src="http://img5.duitang.com/uploads/item/201509/18/20150918071714_m3ZPi.jpeg" alt=""  />
</body>
</html>
